import constant, { Random } from '../constant'
import { ExperienceData } from '@/types/index.ts'
import { getExperienceURL } from '@/store/base/url.ts'

// mock一组数据
const simulateData = (): ExperienceData[] => {
  let list: ExperienceData[] = []
  for (let i = 0; i < 8; i++) {
    let data = {
      content: Random.cname(),
      timestamp: Random.date()
    }
    list.push(data)
  }
  return list
}

export default [
    {
        url: getExperienceURL,
        method: 'post',
        response: simulateData
    }
]
